﻿using ChurchDiary.DAL.Contract;
using ChurchDiary.DAL.Methods;
using ChurchDiary.TableEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChurchDiary.BLL
{
    public class BLL_Promotion
    {
        #region ContactUs
        public string InsertContactUs(EntityContactUs ContactUs)
        {
            IPromotion Promotion = new DAL_Promotion();
            return Promotion.InsertContactUs(ContactUs);
        }
        public string UpdateContactUs(EntityContactUs ContactUs)
        {
            IPromotion Promotion = new DAL_Promotion();
            return Promotion.UpdateContactUs(ContactUs);
        }
        public string DeleteContactUs(Guid ContactUsId)
        {
            IPromotion Promotion = new DAL_Promotion();
            return Promotion.DeleteContactUs(ContactUsId);
        }
        public List<EntityContactUs> GetContactus(int PageNo, string SearchKey, string Sort, string SortMode, int PerPage)
        {
            IPromotion Promotion = new DAL_Promotion();
            return Promotion.GetContactus(PageNo,SearchKey,Sort,SortMode,PerPage);
        }
        public EntityContactUs GetContactUs(Guid ContactUsId)
        {
            IPromotion Promotion = new DAL_Promotion();
            return Promotion.GetContactUs(ContactUsId);
        }
        #endregion
    }
}
